package org.ricks.orm.util;

import org.ricks.ioc.utils.ExceptionUtil;

import java.io.Serial;

/**
 * 数据异常类.
 *
 */
public class OrmException extends RuntimeException {

    @Serial
    private static final long serialVersionUID = 3959550765618198463L;

    public OrmException(Throwable e) {
        super(ExceptionUtil.getMessage(e), e);
    }

    public OrmException(String message) {
        super(message);
    }

    public OrmException(String message, Throwable e) {
        super(message, e);
    }
}
